import React from "react";
import { View, Text } from '@tarojs/components'
import './index.scss'
const CollectCard = (props) => {
    const { data = {} } = props
    const {
        answerAmount,
        askUserProfile,
        askUsername,

        collectAmount,

        commentAmount,

        content = '{}',

        createTime,

        likeAmount,

        refType,

        refTypeName,

        subject = { color: "", cover: "https://resource.gy.cn/test/mathQa.png", id: 1, subjectName: "数学" },
        ViewAmount

    } = data

    // const {
    //     text
    // } = content && JSON.parse(content) ? JSON.parse(content) : {}
    return <View className="CollectCard_content">
        <View className="Collect_list">
            <View className="Collect_list_profile"></View>
            <View className="Collect_list_content">
                <View className="Collect_list_titleBox">
                    <View className="Collect_list_title font_hide">
                        {askUsername}
                    </View>
                    <View className="Collect_title_icon1"></View>
                    <View className="Collect_list_tag">{refTypeName}</View>
                    <View className="Collect_list_time font_hide">{createTime}</View>
                </View>
                <View className="Collect_list_body font_noHide">
                    {/* {text} */}
                </View>

                {/* <View className="Collect_list_showImage">
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                    <View className="Collect_list_image"></View>
                </View> */}
                <View className="Collect_list_tool">
                    <View className="Collect_list_toolLook">{ViewAmount}</View>
                    <View className="Collect_list_toolFollow">{likeAmount}</View>
                    <View className="Collect_list_toolSpeak">{commentAmount}</View>
                    <View className="Collect_list_toolLike">{collectAmount}</View>
                </View>
            </View>
        </View>
    </View>
}
export default CollectCard